<?php

namespace App\Http\Resources\Common\Area;

use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
use JsonSerializable;

class ProvincesResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @param Request $request
     * @return array|Arrayable|JsonSerializable
     */
    public function toArray($request)
    {
        return [
            'name'    => $this->name,
            'name_uy' => $this->name_uy,
            'adcode'  => $this->adcode,
            'pin'     => $this->pin_yin,
        ];
    }
}
